Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support running as a Docker container #33

Merged
merged 3 commits into from
Dec 22, 2017

Conversation

PlasmaPower
Copy link
Contributor

@PlasmaPower PlasmaPower commented Nov 12, 2017

Example use:

mvn clean package
docker build -t shinyproxy .
docker network create -d bridge shinynet
docker run -v "$(pwd)"/application.yml:/opt/shinyproxy/application.yml:ro -v /var/run/docker.sock:/var/run/docker.sock:ro --net shinynet -p 8080:8080 shinyproxy

Note: in a Swarm, shinyproxy must be run on a manager node. This can be accomplished with the deploy.placement.constraints section of docker-compose.yml.

application.yml:

shiny:
  proxy:
    docker:
      internal-networking: true
    ...
  apps:
  - name: exampleapp
    docker-network: shinynet
    ...

Edit: internal-networking option was originally name-networking, see b4865d0.

I also added support for a custom port for apps, since I was working on much of the same code. I can move that into a separate PR if you'd prefer. Edit: separated into #39.

@PlasmaPower
Copy link
Contributor Author

Fixed merge conflicts.

@fmichielssen
Copy link
Member

Hi @PlasmaPower ,

Would you be willing to submit the custom port functionality as a separate PR?

@PlasmaPower
Copy link
Contributor Author

Done with #39.

@PlasmaPower PlasmaPower force-pushed the feature/in-docker branch 2 times, most recently from 8161818 to 989aa66 Compare November 21, 2017 17:20
@PlasmaPower
Copy link
Contributor Author

Also, this removes the need for Docker accepting TCP connections (so you don't have to modify the docker service any more).

I'm planning to add support for Kubernetes, and I don't think I'll be
using the name based DNS system for that. I think it's better to
describe this option as internal networking, which describes the what
instead of the how.
@fmichielssen
Copy link
Member

Hi @PlasmaPower ,

Would it be possible to re-submit this PR on the develop branch?
We have changed our branching model a bit on Github, to allow us more flexibility.

Thanks!

@PlasmaPower PlasmaPower changed the base branch from master to develop December 8, 2017 15:41
@fmichielssen fmichielssen removed their request for review December 21, 2017 15:59
@fmichielssen fmichielssen merged commit 131c588 into openanalytics:develop Dec 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants